#include "mainwindow.h"
#include <QApplication>
#include <qdesktopwidget.h>
#include "qstylefactory.h"
int main(int argc, char *argv[])
{
    QApplication a(argc,argv);
    QApplication::setStyle(QStyleFactory::create("Fusion"));//APP style
    MainWindow w;
    QDesktopWidget *dtp=a.desktop();
    w.move((dtp->width()-w.width())/2,(dtp->height()-w.height())/2);    //Center Screen
    w.setWindowFlags(w.windowFlags() &~ Qt::WindowMaximizeButtonHint);  //No MaximizeButton
    w.setFixedSize(w.width(),w.height());                               //No Resize
    w.show();
    return a.exec();
}
